3.3.5 \(\int \frac {c+d \sec (e+f x)}{(a+b \sec (e+f x))^{3/2}} \, dx\) [205]

Optimal. Leaf size=376 \[ \frac {2 (b c-a d) \cot (e+f x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a b \sqrt {a+b} f}-\frac {2 (b c-a d) \cot (e+f x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a b \sqrt {a+b} f}-\frac {2 \sqrt {a+b} c \cot (e+f x) \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a^2 f}+\frac {2 b (b c-a d) \tan (e+f x)}{a \left (a^2-b^2\right ) f \sqrt {a+b \sec (e+f x)}} \]

[Out]

2*(-a*d+b*c)*cot(f*x+e)*EllipticE((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(b*(1-sec(f*x+e))/(a
+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/a/b/f/(a+b)^(1/2)-2*(-a*d+b*c)*cot(f*x+e)*EllipticF((a+b*sec(f*x+e)
)^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/a/b/f/
(a+b)^(1/2)-2*c*cot(f*x+e)*EllipticPi((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),(a+b)/a,((a+b)/(a-b))^(1/2))*(a+b)^(1
/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/a^2/f+2*b*(-a*d+b*c)*tan(f*x+e)/a/(a^2-b^2)
/f/(a+b*sec(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.30, antiderivative size = 376, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {4008, 4143, 4006, 3869, 3917, 4089} \begin {gather*} -\frac {2 c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a^2 f}+\frac {2 b (b c-a d) \tan (e+f x)}{a f \left (a^2-b^2\right ) \sqrt {a+b \sec (e+f x)}}-\frac {2 (b c-a d) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a b f \sqrt {a+b}}+\frac {2 (b c-a d) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a b f \sqrt {a+b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(c + d*Sec[e + f*x])/(a + b*Sec[e + f*x])^(3/2),x]

[Out]

(2*(b*c - a*d)*Cot[e + f*x]*EllipticE[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(
1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(a*b*Sqrt[a + b]*f) - (2*(b*c - a*d)*Cot[
e + f*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/
(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(a*b*Sqrt[a + b]*f) - (2*Sqrt[a + b]*c*Cot[e + f*x]*Elliptic
Pi[(a + b)/a, ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a +
b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(a^2*f) + (2*b*(b*c - a*d)*Tan[e + f*x])/(a*(a^2 - b^2)*f*Sqrt[a
+ b*Sec[e + f*x]])

Rule 3869

Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[2*(Rt[a + b, 2]/(a*d*Cot[c + d*x]))*Sqrt[b
*((1 - Csc[c + d*x])/(a + b))]*Sqrt[(-b)*((1 + Csc[c + d*x])/(a - b))]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b
*Csc[c + d*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0]

Rule 3917

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*(Rt[a + b, 2]/(b*
f*Cot[e + f*x]))*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[(-b)*((1 + Csc[e + f*x])/(a - b))]*EllipticF[ArcSin
[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 4006

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[c, In
t[1/Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /; FreeQ[{a,
b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 4008

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Simp[b*(b
*c - a*d)*Cot[e + f*x]*((a + b*Csc[e + f*x])^(m + 1)/(a*f*(m + 1)*(a^2 - b^2))), x] + Dist[1/(a*(m + 1)*(a^2 -
 b^2)), Int[(a + b*Csc[e + f*x])^(m + 1)*Simp[c*(a^2 - b^2)*(m + 1) - (a*(b*c - a*d)*(m + 1))*Csc[e + f*x] + b
*(b*c - a*d)*(m + 2)*Csc[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && LtQ[m,
 -1] && NeQ[a^2 - b^2, 0] && IntegerQ[2*m]

Rule 4089

Int[(csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)
], x_Symbol] :> Simp[-2*(A*b - a*B)*Rt[a + b*(B/A), 2]*Sqrt[b*((1 - Csc[e + f*x])/(a + b))]*(Sqrt[(-b)*((1 + C
sc[e + f*x])/(a - b))]/(b^2*f*Cot[e + f*x]))*EllipticE[ArcSin[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b*(B/A), 2]], (a
*A + b*B)/(a*A - b*B)], x] /; FreeQ[{a, b, e, f, A, B}, x] && NeQ[a^2 - b^2, 0] && EqQ[A^2 - B^2, 0]

Rule 4143

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_
.) + (a_)], x_Symbol] :> Int[(A + (B - C)*Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]], x] + Dist[C, Int[Csc[e + f*x
]*((1 + Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]]), x], x] /; FreeQ[{a, b, e, f, A, B, C}, x] && NeQ[a^2 - b^2, 0
]

Rubi steps

\begin {align*} \int \frac {c+d \sec (e+f x)}{(a+b \sec (e+f x))^{3/2}} \, dx &=\frac {2 b (b c-a d) \tan (e+f x)}{a \left (a^2-b^2\right ) f \sqrt {a+b \sec (e+f x)}}-\frac {2 \int \frac {-\frac {1}{2} \left (a^2-b^2\right ) c+\frac {1}{2} a (b c-a d) \sec (e+f x)+\frac {1}{2} b (b c-a d) \sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx}{a \left (a^2-b^2\right )}\\ &=\frac {2 b (b c-a d) \tan (e+f x)}{a \left (a^2-b^2\right ) f \sqrt {a+b \sec (e+f x)}}-\frac {2 \int \frac {-\frac {1}{2} \left (a^2-b^2\right ) c+\left (\frac {1}{2} a (b c-a d)-\frac {1}{2} b (b c-a d)\right ) \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx}{a \left (a^2-b^2\right )}-\frac {(b (b c-a d)) \int \frac {\sec (e+f x) (1+\sec (e+f x))}{\sqrt {a+b \sec (e+f x)}} \, dx}{a \left (a^2-b^2\right )}\\ &=\frac {2 (b c-a d) \cot (e+f x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a b \sqrt {a+b} f}+\frac {2 b (b c-a d) \tan (e+f x)}{a \left (a^2-b^2\right ) f \sqrt {a+b \sec (e+f x)}}+\frac {c \int \frac {1}{\sqrt {a+b \sec (e+f x)}} \, dx}{a}-\frac {(b c-a d) \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx}{a (a+b)}\\ &=\frac {2 (b c-a d) \cot (e+f x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a b \sqrt {a+b} f}-\frac {2 (b c-a d) \cot (e+f x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a b \sqrt {a+b} f}-\frac {2 \sqrt {a+b} c \cot (e+f x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a^2 f}+\frac {2 b (b c-a d) \tan (e+f x)}{a \left (a^2-b^2\right ) f \sqrt {a+b \sec (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 14.39, size = 1491, normalized size = 3.97 \begin {gather*} \frac {(b+a \cos (e+f x))^2 \sec (e+f x) (c+d \sec (e+f x)) \left (\frac {2 (-b c+a d) \sin (e+f x)}{a \left (a^2-b^2\right )}-\frac {2 \left (-b^2 c \sin (e+f x)+a b d \sin (e+f x)\right )}{a \left (a^2-b^2\right ) (b+a \cos (e+f x))}\right )}{f (d+c \cos (e+f x)) (a+b \sec (e+f x))^{3/2}}+\frac {2 (b+a \cos (e+f x))^{3/2} \sqrt {\sec (e+f x)} (c+d \sec (e+f x)) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+b \tan ^2\left (\frac {1}{2} (e+f x)\right )}{1+\tan ^2\left (\frac {1}{2} (e+f x)\right )}} \left (a b \sqrt {\frac {-a+b}{a+b}} c \tan \left (\frac {1}{2} (e+f x)\right )+b^2 \sqrt {\frac {-a+b}{a+b}} c \tan \left (\frac {1}{2} (e+f x)\right )-a^2 \sqrt {\frac {-a+b}{a+b}} d \tan \left (\frac {1}{2} (e+f x)\right )-a b \sqrt {\frac {-a+b}{a+b}} d \tan \left (\frac {1}{2} (e+f x)\right )-2 a b \sqrt {\frac {-a+b}{a+b}} c \tan ^3\left (\frac {1}{2} (e+f x)\right )+2 a^2 \sqrt {\frac {-a+b}{a+b}} d \tan ^3\left (\frac {1}{2} (e+f x)\right )+a b \sqrt {\frac {-a+b}{a+b}} c \tan ^5\left (\frac {1}{2} (e+f x)\right )-b^2 \sqrt {\frac {-a+b}{a+b}} c \tan ^5\left (\frac {1}{2} (e+f x)\right )-a^2 \sqrt {\frac {-a+b}{a+b}} d \tan ^5\left (\frac {1}{2} (e+f x)\right )+a b \sqrt {\frac {-a+b}{a+b}} d \tan ^5\left (\frac {1}{2} (e+f x)\right )-2 i a^2 c \Pi \left (-\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+b \tan ^2\left (\frac {1}{2} (e+f x)\right )}{a+b}}+2 i b^2 c \Pi \left (-\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+b \tan ^2\left (\frac {1}{2} (e+f x)\right )}{a+b}}-2 i a^2 c \Pi \left (-\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right ) \tan ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+b \tan ^2\left (\frac {1}{2} (e+f x)\right )}{a+b}}+2 i b^2 c \Pi \left (-\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right ) \tan ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+b \tan ^2\left (\frac {1}{2} (e+f x)\right )}{a+b}}+i (a-b) (-b c+a d) E\left (i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+b \tan ^2\left (\frac {1}{2} (e+f x)\right )}{a+b}}+i (a-b) (2 b c+a (c-d)) F\left (i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (e+f x)\right )+b \tan ^2\left (\frac {1}{2} (e+f x)\right )}{a+b}}\right )}{a \sqrt {\frac {-a+b}{a+b}} \left (a^2-b^2\right ) f (d+c \cos (e+f x)) (a+b \sec (e+f x))^{3/2} \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {\frac {1+\tan ^2\left (\frac {1}{2} (e+f x)\right )}{1-\tan ^2\left (\frac {1}{2} (e+f x)\right )}} \left (a \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )-b \left (1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(c + d*Sec[e + f*x])/(a + b*Sec[e + f*x])^(3/2),x]

[Out]

((b + a*Cos[e + f*x])^2*Sec[e + f*x]*(c + d*Sec[e + f*x])*((2*(-(b*c) + a*d)*Sin[e + f*x])/(a*(a^2 - b^2)) - (
2*(-(b^2*c*Sin[e + f*x]) + a*b*d*Sin[e + f*x]))/(a*(a^2 - b^2)*(b + a*Cos[e + f*x]))))/(f*(d + c*Cos[e + f*x])
*(a + b*Sec[e + f*x])^(3/2)) + (2*(b + a*Cos[e + f*x])^(3/2)*Sqrt[Sec[e + f*x]]*(c + d*Sec[e + f*x])*Sqrt[(a +
 b - a*Tan[(e + f*x)/2]^2 + b*Tan[(e + f*x)/2]^2)/(1 + Tan[(e + f*x)/2]^2)]*(a*b*Sqrt[(-a + b)/(a + b)]*c*Tan[
(e + f*x)/2] + b^2*Sqrt[(-a + b)/(a + b)]*c*Tan[(e + f*x)/2] - a^2*Sqrt[(-a + b)/(a + b)]*d*Tan[(e + f*x)/2] -
 a*b*Sqrt[(-a + b)/(a + b)]*d*Tan[(e + f*x)/2] - 2*a*b*Sqrt[(-a + b)/(a + b)]*c*Tan[(e + f*x)/2]^3 + 2*a^2*Sqr
t[(-a + b)/(a + b)]*d*Tan[(e + f*x)/2]^3 + a*b*Sqrt[(-a + b)/(a + b)]*c*Tan[(e + f*x)/2]^5 - b^2*Sqrt[(-a + b)
/(a + b)]*c*Tan[(e + f*x)/2]^5 - a^2*Sqrt[(-a + b)/(a + b)]*d*Tan[(e + f*x)/2]^5 + a*b*Sqrt[(-a + b)/(a + b)]*
d*Tan[(e + f*x)/2]^5 - (2*I)*a^2*c*EllipticPi[-((a + b)/(a - b)), I*ArcSinh[Sqrt[(-a + b)/(a + b)]*Tan[(e + f*
x)/2]], (a + b)/(a - b)]*Sqrt[1 - Tan[(e + f*x)/2]^2]*Sqrt[(a + b - a*Tan[(e + f*x)/2]^2 + b*Tan[(e + f*x)/2]^
2)/(a + b)] + (2*I)*b^2*c*EllipticPi[-((a + b)/(a - b)), I*ArcSinh[Sqrt[(-a + b)/(a + b)]*Tan[(e + f*x)/2]], (
a + b)/(a - b)]*Sqrt[1 - Tan[(e + f*x)/2]^2]*Sqrt[(a + b - a*Tan[(e + f*x)/2]^2 + b*Tan[(e + f*x)/2]^2)/(a + b
)] - (2*I)*a^2*c*EllipticPi[-((a + b)/(a - b)), I*ArcSinh[Sqrt[(-a + b)/(a + b)]*Tan[(e + f*x)/2]], (a + b)/(a
 - b)]*Tan[(e + f*x)/2]^2*Sqrt[1 - Tan[(e + f*x)/2]^2]*Sqrt[(a + b - a*Tan[(e + f*x)/2]^2 + b*Tan[(e + f*x)/2]
^2)/(a + b)] + (2*I)*b^2*c*EllipticPi[-((a + b)/(a - b)), I*ArcSinh[Sqrt[(-a + b)/(a + b)]*Tan[(e + f*x)/2]],
(a + b)/(a - b)]*Tan[(e + f*x)/2]^2*Sqrt[1 - Tan[(e + f*x)/2]^2]*Sqrt[(a + b - a*Tan[(e + f*x)/2]^2 + b*Tan[(e
 + f*x)/2]^2)/(a + b)] + I*(a - b)*(-(b*c) + a*d)*EllipticE[I*ArcSinh[Sqrt[(-a + b)/(a + b)]*Tan[(e + f*x)/2]]
, (a + b)/(a - b)]*Sqrt[1 - Tan[(e + f*x)/2]^2]*(1 + Tan[(e + f*x)/2]^2)*Sqrt[(a + b - a*Tan[(e + f*x)/2]^2 +
b*Tan[(e + f*x)/2]^2)/(a + b)] + I*(a - b)*(2*b*c + a*(c - d))*EllipticF[I*ArcSinh[Sqrt[(-a + b)/(a + b)]*Tan[
(e + f*x)/2]], (a + b)/(a - b)]*Sqrt[1 - Tan[(e + f*x)/2]^2]*(1 + Tan[(e + f*x)/2]^2)*Sqrt[(a + b - a*Tan[(e +
 f*x)/2]^2 + b*Tan[(e + f*x)/2]^2)/(a + b)]))/(a*Sqrt[(-a + b)/(a + b)]*(a^2 - b^2)*f*(d + c*Cos[e + f*x])*(a
+ b*Sec[e + f*x])^(3/2)*(-1 + Tan[(e + f*x)/2]^2)*Sqrt[(1 + Tan[(e + f*x)/2]^2)/(1 - Tan[(e + f*x)/2]^2)]*(a*(
-1 + Tan[(e + f*x)/2]^2) - b*(1 + Tan[(e + f*x)/2]^2)))

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(2009\) vs. \(2(347)=694\).
time = 3.34, size = 2010, normalized size = 5.35

method result size
default \(\text {Expression too large to display}\) \(2010\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(3/2),x,method=_RETURNVERBOSE)

[Out]

-1/f*4^(1/2)*((a*cos(f*x+e)+b)/cos(f*x+e))^(1/2)*(cos(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+
b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*a*b*c-cos(
f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticE((-1+cos(f*x+e
))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*a*b*d-cos(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e
)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*a*b*c+co
s(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticF((-1+cos(f*x
+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*a*b*d+EllipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2)
)*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*a^2*d-cos(f*x+e)*
a^2*d+cos(f*x+e)*a*b*c-EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f
*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*a^2*d+EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b
)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*b^2
*c+2*EllipticPi((-1+cos(f*x+e))/sin(f*x+e),-1,((a-b)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2
)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*a^2*c-2*EllipticPi((-1+cos(f*x+e))/sin(f*x+e),-1,((a-b)/(a+b))
^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*b^2*c-Ellip
ticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+
e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*a^2*c-cos(f*x+e)^2*a*b*c-cos(f*x+e)^2*a*b*d+cos(f*x+e)*a*b*d-EllipticF((-1+c
os(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos
(f*x+e)+1)/(a+b))^(1/2)*a*b*c+EllipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)
/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*a*b*d+EllipticE((-1+cos(f*x+e))/sin(f*x+e
),((a-b)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1
/2)*a*b*c-EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/
2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*a*b*d-2*cos(f*x+e)*sin(f*x+e)*EllipticPi((-1+cos(f*x+e))/sin(
f*x+e),-1,((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)
*b^2*c+cos(f*x+e)^2*a^2*d+cos(f*x+e)^2*b^2*c-cos(f*x+e)*b^2*c-cos(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a
*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e
)*a^2*d+cos(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticE((
-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*b^2*c+2*cos(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)
*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticPi((-1+cos(f*x+e))/sin(f*x+e),-1,((a-b)/(a+b))^(1/2))*s
in(f*x+e)*a^2*c-cos(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*Ell
ipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*sin(f*x+e)*a^2*c+cos(f*x+e)*(cos(f*x+e)/(cos(f*x+e)+1))
^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a+b))^(1/2)*EllipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))
*sin(f*x+e)*a^2*d)/(a*cos(f*x+e)+b)/sin(f*x+e)/a/(a+b)/(a-b)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(3/2),x, algorithm="maxima")

[Out]

integrate((d*sec(f*x + e) + c)/(b*sec(f*x + e) + a)^(3/2), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(3/2),x, algorithm="fricas")

[Out]

integral(sqrt(b*sec(f*x + e) + a)*(d*sec(f*x + e) + c)/(b^2*sec(f*x + e)^2 + 2*a*b*sec(f*x + e) + a^2), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {c + d \sec {\left (e + f x \right )}}{\left (a + b \sec {\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))**(3/2),x)

[Out]

Integral((c + d*sec(e + f*x))/(a + b*sec(e + f*x))**(3/2), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(3/2),x, algorithm="giac")

[Out]

integrate((d*sec(f*x + e) + c)/(b*sec(f*x + e) + a)^(3/2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {c+\frac {d}{\cos \left (e+f\,x\right )}}{{\left (a+\frac {b}{\cos \left (e+f\,x\right )}\right )}^{3/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c + d/cos(e + f*x))/(a + b/cos(e + f*x))^(3/2),x)

[Out]

int((c + d/cos(e + f*x))/(a + b/cos(e + f*x))^(3/2), x)

________________________________________________________________________________________